package cn.iocoder.yudao.module.infrastructure.framework;

import cn.iocoder.yudao.framework.util.SwaggerUtils;
import org.springdoc.core.models.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

/**
 * web 组件的配置类
 *
 * @author 芋道源码
 */
@Primary
@Configuration(proxyBeanMethods = false)
public class InfraWebConfiguration {

    @Bean
    public GroupedOpenApi infraGroupedOpenApi() {
        //return YudaoSwaggerAutoConfiguration.buildGroupedApi("infra");
        return SwaggerUtils.buildGroupedAppApi("infra"); // FIXME 忽略 admin-api
    }

}
